<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditIngresosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditIngresosLabel_id}" for="id" />
                    <h:inputText id="id" value="#{ingresosController.selected.id}" title="#{bundle.EditIngresosTitle_id}" required="true" requiredMessage="#{bundle.EditIngresosRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.EditIngresosLabel_fechaingreso}" for="fechaingreso" />
                    <h:inputText id="fechaingreso" value="#{ingresosController.selected.fechaingreso}" title="#{bundle.EditIngresosTitle_fechaingreso}" required="true" requiredMessage="#{bundle.EditIngresosRequiredMessage_fechaingreso}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditIngresosLabel_valor}" for="valor" />
                    <h:inputText id="valor" value="#{ingresosController.selected.valor}" title="#{bundle.EditIngresosTitle_valor}" />
                    <h:outputLabel value="#{bundle.EditIngresosLabel_observaciones}" for="observaciones" />
                    <h:inputText id="observaciones" value="#{ingresosController.selected.observaciones}" title="#{bundle.EditIngresosTitle_observaciones}" />
                    <h:outputLabel value="#{bundle.EditIngresosLabel_numerodoc}" for="numerodoc" />
                    <h:selectOneMenu id="numerodoc" value="#{ingresosController.selected.numerodoc}" title="#{bundle.EditIngresosTitle_numerodoc}" >
                        <f:selectItems value="#{usuariosController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditIngresosLabel_formapago}" for="formapago" />
                    <h:selectOneMenu id="formapago" value="#{ingresosController.selected.formapago}" title="#{bundle.EditIngresosTitle_formapago}" required="true" requiredMessage="#{bundle.EditIngresosRequiredMessage_formapago}">
                        <f:selectItems value="#{formaspagoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditIngresosLabel_concepto}" for="concepto" />
                    <h:selectOneMenu id="concepto" value="#{ingresosController.selected.concepto}" title="#{bundle.EditIngresosTitle_concepto}" required="true" requiredMessage="#{bundle.EditIngresosRequiredMessage_concepto}">
                        <f:selectItems value="#{conceptosController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{ingresosController.update}" value="#{bundle.EditIngresosSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditIngresosViewLink}"/>
                <br />
                <h:commandLink action="#{ingresosController.prepareList}" value="#{bundle.EditIngresosShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditIngresosIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
